﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

public class OnlineexamHelper
{
	private static object key = new object();
    public static OnlineexamDataContext context
    {
        get
        {
            if (HttpContext.Current.Items.Contains(key) == false)
            {
                var obj = new OnlineexamDataContext();
                return obj;
            }
            else
            {
                return (OnlineexamDataContext)HttpContext.Current.Items[key];
            }
        }
    }
}